package com.jml.每特.mybatis注解.mapper;

import com.jml.每特.mybatis注解.annotation.ExtInsert;
import com.jml.每特.mybatis注解.annotation.ExtParam;
import com.jml.每特.mybatis注解.annotation.ExtSelect;
import com.jml.每特.mybatis注解.entity.User;

public interface UserMapper {


	@ExtSelect("select * from User where userName=#{userName} and userAge=#{userAge} ")
	User selectUser(@ExtParam("userName") String name, @ExtParam("userAge") Integer userAge);

	@ExtInsert("insert into user(userName,userAge) values(#{userName},#{userAge})")
	int insertUser(@ExtParam("userAge") Integer userAgeq, @ExtParam("userName") String userNameq);

}
